package com.web.controller.crawler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.web.dao.BaseDao;

@RestController
@RequestMapping("/userAction")
public class UserAction {

	@Autowired
	private BaseDao baseDao;
	
	@RequestMapping(value = "/add")
	public void add(){
		String sql="INSERT INTO tb_sm_com (id,name) VALUES ('222','张三')";
		baseDao.execute(sql);
	}
}
